<template>
	<view class="securityCenter">
		<topTitle :title="$t('securityCenter.title')" />
		<view class="com">
			<view @click="goTo('/pages/mine/editLoginPsw')">{{ $t('securityCenter.editLoginPsw') }}</view>
			<view @click="goTo('/pages/mine/editPayPsw')">
				{{ userInfo.payment_password_set ? $t('securityCenter.editPayPsw.modify') : $t('securityCenter.editPayPsw.set') }}
			</view>
		</view>
	</view>
</template>

<script setup lang="ts">
import { ref, getCurrentInstance } from "vue";
const instance = getCurrentInstance()?.appContext.config.globalProperties;
import { onShow } from "@dcloudio/uni-app";
let userInfo=ref<any>({})
onShow(() => {
	userInfo.value=uni.getStorageSync('userInfo')
 });

</script>
<style scoped lang="scss">
@import "../../static/scss/mine.scss";
</style>